package com.feonix.common.exception;

import com.feonix.common.util.SpringUtil;

public class SqlInjectionException extends RuntimeException {
	/**
	 * 
	 */
	private static final long serialVersionUID = -8307160274984102762L;
	private String key;

	public SqlInjectionException(String message) {
		super(SpringUtil.getMessage(message));
		this.key = message;
	}

	public SqlInjectionException(String message, Object[] param) {
		super(SpringUtil.getMessage(message, param));
		this.key = message;
	}

	public String getMessageKey() {
		return this.key;
	}
}
